package com.example.mongodb.entity;

import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document("User") //操作mongodb中的集合（相当于mysql中的表）
public class User {

    @Id //生产下滑线
    private String id;
    private String name;
    private Integer age;
    private String email;
    private String creareDate;
}
